<table>
  <tr>
    <td bgcolor="#92BAF6" width="700">Shares</td>
  </tr>
  <tr>
    <td>
      <table border="0" cellpadding="4" cellspacing="1" width="100%">
        <tbody>
          <tr class="txtb" align="left" bgcolor="#3CD7F6" valign="middle">
            <td>Code</td>
            <td>Name</td>
            <td>&nbsp;</td>
          </tr>
          <% for share in @shares %>
          <tr bgcolor="#dddddd" valign="middle">
            <td class="txtbld" bgcolor="#eeeeee"><%= link_to share.code, :action => 'edit', :id => share.id %></td>
            <td class="txtbld" bgcolor="#eeeeee"><%= link_to share.name, :action => 'edit', :id => share.id %></td>
            <td class="txtbld" bgcolor="#eeeeee">
              <% if share.active? %>
                <%= link_to 'ACTVIE', :action => 'edit', :id => share.id %>
              <%else%>
                <%= link_to 'INACTVIE', :action => 'edit', :id => share.id %>
              <%end%>
            </td>
          </tr>
          <% end %>
        </tbody>
      </table>
    </td>
  </tr>
</table>
  
<%= link_to 'Add Share', :action => 'new' %>
<%= link_to 'Home', :controller => 'index' %>
<br/>
